﻿
@{
    /**/

    ViewData["Title"] = "UserRoleQuanXianEdit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section head{

    <link href="/css/zui.min.css" rel="stylesheet" />
    <link id="linkTheme" href="/css/<%=" "+UserTheme %>.css" rel="stylesheet" />
    <link href="/css/custom.css" rel="stylesheet" />

    <style type="text/css">
        .input-group {
            margin-bottom: 15px;
            text-align: center;
            width: 100%;
        }

        #cboxlistRole {
            width: 100%;
        }

            #cboxlistRole td {
                text-align: left;
            }

            #cboxlistRole label {
                font-weight: normal;
                margin-right: 8px;
                margin-left: 2px;
            }

        .input-group-addon {
            width: 120px;
        }
    </style>

}
<form id="form1" runat="server">
    <div id="dContent">
        <%--<div class="input-group">
            <span class="input-group-addon">选择页面</span>
            <asp:DropDownList ID="DropDownList1" runat="server" CssClass="form-control" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList>
        </div>--%>
        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <ItemTemplate>
                <div class="input-group">
                    <span class="input-group-addon"><%#Eval("name") %></span>
                    <div class="form-control" style="height: auto; min-height: 43px; overflow-y: auto; width: 100%">
                        <asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatDirection="Horizontal" RepeatColumns="8">
                        </asp:CheckBoxList>
                    </div>
                </div>

            </ItemTemplate>
        </asp:Repeater>

        <%--         <div class="input-group">
            <span class="input-group-addon">选择权限</span>
            <div class="form-control" style="height: auto; overflow-y: auto;">
                <asp:CheckBoxList ID="cboxlistRole" runat="server" RepeatDirection="Horizontal" RepeatColumns="3">
                </asp:CheckBoxList>
            </div>
        </div>--%>
    </div>
    <div class="zui-footer">
        <asp:Button ID="btnSave" runat="server" CssClass="btn btn-primary  btn-sm" Text="保存" OnClick="btnSave_Click" OnClientClick="return verfic('tip', '#dContent');" />
        <button id="btnClose" class="btn btn-default  btn-sm" type="button" onclick="closePage()">关闭</button>
    </div>
</form>

@section scripts{
    <script src="/lib/jquery/jquery.js"></script>
    <script src="/js/zui.js"></script>
    <script src="/js/zuiCode.js"></script>
    <script src="/js/verification.js"></script>
    <script src="/js/My97DatePicker/WdatePicker.js"></script>
}